/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class FreightPrice
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public FreightPrice()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("shipprice");
/*    */   }
/*    */ 
/*    */   public List getPriceInfo(Map paraMap) throws IOException {
/* 25 */     ArrayList showList = new ArrayList();
/* 26 */     SearchData search = new SearchData();
/* 27 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 29 */     String start_addr = ""; String end_addr = ""; String ship_type = ""; String goods_type = ""; String in_date = "";
/* 30 */     String keyword = ""; String cust_id = "";
/* 31 */     if (paraMap.get("cust_id") != null) cust_id = paraMap.get("cust_id").toString();
/* 32 */     if (paraMap.get("start_addr") != null) start_addr = paraMap.get("start_addr").toString();
/* 33 */     if (paraMap.get("end_addr") != null) end_addr = paraMap.get("end_addr").toString();
/* 34 */     if (paraMap.get("ship_type") != null) ship_type = paraMap.get("ship_type").toString();
/* 35 */     if (paraMap.get("goods_type") != null) goods_type = paraMap.get("goods_type").toString();
/* 36 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/* 37 */     if (paraMap.get("keyword") != null) keyword = paraMap.get("keyword").toString();
/*    */ 
/* 39 */     Queue queue = new Queue(new QueueValue[] { new QueueValue("in_date", 2, true) });
/* 40 */     paraList.add(new SearchModel("0", "cust_id", cust_id));
/* 41 */     paraList.add(new SearchModel("0", "start_addr", start_addr));
/* 42 */     paraList.add(new SearchModel("0", "end_addr", end_addr));
/* 43 */     paraList.add(new SearchModel("0", "ship_type", ship_type));
/* 44 */     paraList.add(new SearchModel("0", "goods_type", goods_type));
/* 45 */     paraList.add(new SearchModel("1", "in_date", in_date));
/*    */ 
/* 47 */     paraList.add(new SearchModel("2", keyword, new String[] { "start_addr", "end_addr" }));
/* 48 */     showList = search.getSearchInfo(this.file_path, paraList, queue);
/* 49 */     return showList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.FreightPrice
 * JD-Core Version:    0.6.0
 */